<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>管理后台</title>
<script language="javascript" src="Js/calendar.js"></script>
<link href="Css/css.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
body {
	background-color: #ddeef2;
}
-->
</style>
<script language="javascript" type="text/javascript">
<!--
function fnOnPageChanged(page) {
	g('adminuser').action += '&page='+page;
	document.adminuser.submit();
}
function g(id) {
	return document.getElementById(id);
}
// -->
</script>
</head>

<body>
<div id="main_title"><a href="#">后台管理中心</a>—系统配置</div>
<!--div id="main_title2">| <a href="#">添加帮助文档</a></div-->
<div id="main_search">
  <form id="adminuser" name="adminuser" method="post" action="index.php?controller=BoConfig&action=index">
    <table width="100%" border="0" cellspacing="2" cellpadding="2">
      <tr>
      	<td>名称</td>
        <td><input name="name" id="name" type="text" value="<?=$_REQUEST['name']?>" /></td>
        <td><input type="submit" value="提交" name="sub" id="sub"/></td>
        <td align="right"><a href="index.php?controller=BoConfig&action=create" style="color:red;">添加新记录</a></td>
	</tr>
    </table>
  </form>
</div>
<div id="main_list">
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
  <tr>
    <td width="25%" align="center" bgcolor="#9EC1DE" class="title">名称</td>
    <td width="25%" align="center" bgcolor="#9EC1DE" class="title">值</td>
    <td width="25%" align="center" bgcolor="#9EC1DE" class="title">注释</td>
    <td width="25%" align="center" bgcolor="#9EC1DE" class="title">编辑</td>
  </tr>
<?php 
foreach($rowset as $row){
?>
  <tr>
    <td align="center" bgcolor="#DCE8F3" class="content"><?=$row['name']?></td>
    <td align="center" bgcolor="#DCE8F3" class="content2"><?=$row['value']?></td>
    <td align="center" bgcolor="#DCE8F3" class="content2"><?=$row['comment']?></td>
    <td align="center" bgcolor="#DCE8F3" class="content2"><a href="index.php?controller=BoConfig&action=edit&id=<?=$row['id']?>">编辑</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="index.php?controller=BoConfig&action=delete&id=<?=$row['id']?>">删除</a></td>
  </tr>
<?php
}
?>
</table>
  <?php if ($pager->count > 0): ?>
  <table width="100%" border="0" cellpadding="2" cellspacing="0">
    <tr>
      <td bgcolor="#FCFCFC"><input name="FirstPage" type="button" id="FirstPage" value=" |&lt; " onclick="fnOnPageChanged(<?php echo $pager->firstPage; ?>);" />
        <input name="PrevPage" type="button" id="PrevPage" value=" &lt; " onclick="fnOnPageChanged(<?php echo $pager->prevPage; ?>);" />
        <?php $pager->renderPageJumper(_T('ui_p_jump_page')); ?>
        <input name="NextPage" type="button" id="NextPage" value=" &gt; " onclick="fnOnPageChanged(<?php echo $pager->nextPage; ?>);" />
        <input name="LastPage" type="button" id="LastPage" value=" &gt;| " onclick="fnOnPageChanged(<?php echo $pager->lastPage; ?>);" />
      </td>
    </tr>
  </table>
  <?php else: // if ($pager->count > 0) ?>
  <table width="100%" border="0" cellpadding="2" cellspacing="0">
    <tr>
      <td><?php echo h(_T('ui_p_no_products')); ?></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
    </tr>
  </table>
  <?php endif; // if ($pager->count > 0) ?>
  <table width="100%" border="0" cellpadding="2" cellspacing="0">
    <tr>
      <td><?php printf(_T('ui_p_page_info'), $total, $pager->count, $pager->pageCount, $pager->currentPage + 1); ?></td>  
    </tr>
  </table>
</div>
<div id="main_copy">Copyright&copy;2003 – 2009 ITeam Monkey. All Rights Reserved ITeam Monkey 版权所有 </div>
</body>
</html>
